package com.yijinsuo.dialog;

import android.app.Dialog;
import android.content.Context;
import android.view.Display;
import android.view.WindowManager;

import com.yijinsuo.R;

/**
 * Created by ekikousei易皇星 on 16/11/22.
 * E-mail:13764664731@163.com
 * Signature:缘分是本书,翻的不经意会错过,读的太认真会流泪!!
 * <p/>
 * TODO:类描述:
 */
public class CustomDialog extends Dialog {
    private Display display;
    private Context context;

    public CustomDialog(Context context) {
        super(context);
        this.context = context;

        WindowManager windowManager = (WindowManager) context
                .getSystemService(Context.WINDOW_SERVICE);
        display = windowManager.getDefaultDisplay();


        init();
    }

    public CustomDialog(Context context, int themeResId) {
        super(context, themeResId);
        this.context = context;
        init();
    }

    private void init() {
//        View view = LayoutInflater.from(context).inflate(R.layout.pay_layout_view, null);
//        view.setMinimumWidth(display.getWidth());
        setContentView(R.layout.pay_layout_view);


    }


}
